package com.sky;  // 定义包名为 com.sky

import lombok.extern.slf4j.Slf4j; // Lombok 日志注解
import org.springframework.boot.SpringApplication; // Spring Boot 启动类
import org.springframework.boot.autoconfigure.SpringBootApplication;  // 核心注解
import org.springframework.transaction.annotation.EnableTransactionManagement; // 事务管理支持

@SpringBootApplication
@EnableTransactionManagement //开启注解方式的事务管理
@Slf4j
public class SkyApplication {
    //注解@Slf4j会生成如下代码，安装插件Lombok+依赖
    // private static final Logger log = LoggerFactory.getLogger(SkyApplication.class);
    public static void main(String[] args) {
        SpringApplication.run(SkyApplication.class, args);
        log.info("server started");//通过注解@Slf4j生成
    }
}
